import { Component, OnInit } from '@angular/core';
import {CONSTANT} from "../../service/constant.service";
import {TitleCpt} from "../../lib/title/title.component";

@Component({
  selector: 'app-story-detail-view',
  templateUrl: './story-detail-view.component.html',
  styleUrls: ['./story-detail-view.component.scss']
})
export class StoryDetailViewComponent implements OnInit {

  storyTitleCptList:Array<TitleCpt> = this.constant.genStoryViewTitleCptList();
  constructor(private constant:CONSTANT) { }

  storyList:any=[
    {
      time:2017,
      message:[
      {image:'assets/images/brand-story.jpg',title:'乾卦',content:'天行健，君子以自强不息'},
      {image:'assets/images/brand-story.jpg',title:'坤卦',content:'地势坤，君子以厚德载物'},
      {image:'assets/images/brand-story.jpg',title:'屯卦',content:'云雷屯，君子以经纶'}
      ]
    },
    {
      time:2016,
      message:[
        {image:'assets/images/brand-story.jpg',title:'乾卦',content:'天行健，君子以自强不息'},
        {image:'assets/images/brand-story.jpg',title:'坤卦',content:'地势坤，君子以厚德载物'},
        {image:'assets/images/brand-story.jpg',title:'屯卦',content:'云雷屯，君子以经纶'}
      ]
    }
  ];

  ngOnInit() {
    // console.log(this.storyList);
  }

}
